<!DOCTYPE html>
<html>
<head>
    <include file="Include:meta"/>
    <title>按月份调整收入-目的地运营集团数据管理平台</title>
    <include file="Include:style"/>
    <style>
        .w50 {
            width: 50px;
        }
    </style>
</head>
<body>
<include file="Include:header"/>
<include file="Include:left"/>
<div id="main">
    <div class="crumbs">
        <div class="crumbs-text">收入月报表 > 按月份调整收入</div>
    </div>
    <div id="content">
        <form action="__APP__/Crm/income_change" method="post" id="market_edit_form">
            <input name="imid", value="{$imid}" type="hidden">
            <input name="imid_kpi", value="{$imid_kpi}" type="hidden">
            <div class="form-main">
                <div class="form-title">按月份调整收入</div>
				<div class="form-item clearfix">
					<div class="item-float" style="width:25%">
						<div class="input-label"><span class="asterisk">*</span>项目名称</div>
						<div class="input-item" style="position:relative;">
							<input type="text" readonly class="form-control required-text w300" autocomplete="off" value="{$result['imid']}">
							<span class="error-item">必填项</span>
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label"><span class="asterisk">*</span>年份</div>
						<div class="input-item" style="position:relative;">
							<input type="text" readonly class="form-control required-text w300" autocomplete="off" value="{$result['year']}">
							<span class="error-item">必填项</span>
						</div>
					</div>
				</div>
				<div class="form-main">
					<div class="form-title">月分摊</div>
				</div>
				<div class="form-item clearfix">
					<div class="item-float" style="width:25%">
						<div class="input-label">1月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m1" value="{$result['m1']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">2月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m2" value="{$result['m2']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">3月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m3" value="{$result['m3']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">4月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m4" value="{$result['m4']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
				</div>
				<div class="form-item clearfix">
					<div class="item-float" style="width:25%">
						<div class="input-label">5月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m5" value="{$result['m5']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">6月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m6" value="{$result['m6']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">7月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m7" value="{$result['m7']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">8月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m8" value="{$result['m8']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
				</div>
				<div class="form-item clearfix">
					<div class="item-float" style="width:25%">
						<div class="input-label">9月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m9" value="{$result['m9']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">10月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m10" value="{$result['m10']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">11月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m11" value="{$result['m11']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">12月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m12" value="{$result['m12']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
				</div>
				<div class="form-main">
					<div class="form-title">浮动</div>
				</div>
				<div class="form-item clearfix">
					<div class="item-float" style="width:25%">
						<div class="input-label">1月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m1f" value="{$result_kpi['m1']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">2月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m2f" value="{$result_kpi['m2']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">3月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m3f" value="{$result_kpi['m3']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">4月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m4f" value="{$result_kpi['m4']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
				</div>
				<div class="form-item clearfix">
					<div class="item-float" style="width:25%">
						<div class="input-label">5月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m5f" value="{$result_kpi['m5']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">6月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m6f" value="{$result_kpi['m6']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">7月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m7f" value="{$result_kpi['m7']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">8月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m8f" value="{$result_kpi['m8']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
				</div>
				<div class="form-item clearfix">
					<div class="item-float" style="width:25%">
						<div class="input-label">9月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m9f" value="{$result_kpi['m9']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">10月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m10f" value="{$result_kpi['m10']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">11月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m11f" value="{$result_kpi['m11']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
					<div class="item-float" style="width:25%">
						<div class="input-label">12月</div>
						<div class="input-item">
							<input type="text" class="form-control w200" name="m12f" value="{$result_kpi['m12']}" autocomplete="off" onkeyup="num(this);">
						</div>
					</div>
				</div>
            </div>
            <p class="red Text_c bili_item hide"></p>
            <div class="form-btn-item"><input type="submit" value="提交" class="btn btn-submit">
                <button class="btn btn-default goback" type="button">返回</button>
            </div>
        </form>
    </div>
</div>
</body>
<include file="Include:javascript"/>
<script type="text/javascript">
		function num(obj){
			obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
			obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
			obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
			obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
			obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
		}
</script>
</html>